<template>
  <div id="app" >
    <!-- 顶部区域 -->
    <mt-header fixed title="固定在顶部"></mt-header>
    <!--  路由内容-->

    <!-- 底部 区域 -->
    <nav class="mui-bar mui-bar-tab">
			<a class="mui-tab-item mui-active" href="#tabbar">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item" href="#tabbar-with-chat">
				<span class="mui-icon mui-icon-email"><span class="mui-badge">9</span></span>
				<span class="mui-tab-label">消息</span>
			</a>
			<a class="mui-tab-item" href="#tabbar-with-contact">
				<span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">通讯录</span>
			</a>
			<a class="mui-tab-item" href="#tabbar-with-map">
				<span class="mui-icon mui-icon-gear"></span>
				<span class="mui-tab-label">设置</span>
			</a>
		</nav>
		
  </div>
  
</template>

<script>
import { Toast } from "mint-ui";
export default {
  //es6导出对象的写法
  name: "App",
  methods: {
    tip() {
      Toast({
        message: "测试哈哈哈哈",
        position: " center",
        duration: 1000,
        iconClass: 'icon icon-success'
      });
    }
  }
};
</script>

<style scoped>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  padding-top: 40px;
}

</style>
